package com.cm.log_process.log_common.entity;
/**
*@Date 2019/12/10
*@Author 郭兆鹏
*作用：系统状态码
*
*/
public enum StatusCode {
    PARAM_NEED(1006,"缺少参数"),
    ERROR(-1,"系统错误"),
    SUCCESS(200,"成功"),
    NO_RESULT(201,"查询结果为空"),
    ORTHER(-2,"其他错误"),
    VAILDATA_ERROR(1001,"参数格式验证错误");


    private Integer code;
    private String message;

    StatusCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}